<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
	<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
	<font class="title"> Erun Cinema 에서 현재 상영중인 영화의 개봉일 기준 영화목록입니다.</font>

<hr color="#f5f5f5">
<c:forEach items="${requestScope.list}" var="movie">
<table width="90%" style='table-layout: fixed' align='center' height="200">
	<tr>
		<td rowspan="6" width="200"><a href="movie.do?command=getMovieDetail&movie_no=${movie.MOVIE_NO}"><img src="img.poster/${movie.MOVIE_NO}.jpg" width="180" height="200"/></a></td>
		<td><b><font size="3"><a href="movie.do?command=getMovieDetail&movie_no=${movie.MOVIE_NO}">${movie.MOVIE_TITLE}</a></font></b>  <img src="img.grade/${movie.MOVIE_GRADE_NO}.png"></td>
		<td rowspan="6" width="150" align="center"><a href="reservation.do?command=reservation"><img src="img/btn_ticketing.gif"></a></td>
	</tr>
	<tr>
		<td><b><font color="#696969">기본정보</font> </b><font color="#808080">&nbsp;&nbsp;${movie.GENRE}&nbsp;&nbsp; |&nbsp;&nbsp; ${movie.COUNTRY}&nbsp;&nbsp; |&nbsp;&nbsp; ${movie.RUNNING_TIME}분&nbsp;&nbsp;</font></td>
	</tr>
	<tr>
		<td><b><font color="#696969"> 감독</font> </b><font color="#696969"> ${movie.DIRECTOR}</font> </td>
	</tr>
	<tr>
		<td><b><font color="#696969"> 출연</font> </b><font color="#696969">${movie.ACTOR}</font></td>
	</tr>
	<tr>
		<td><B><font color="#696969"> 등급</font> </B> 
			<c:choose>
				<c:when test="${movie.MOVIE_GRADE==0}"><font color="#696969">전체 관람가</font></c:when>
				<c:otherwise><font color="#696969">${movie.MOVIE_GRADE}세 이상 관람가</font></c:otherwise>
			</c:choose>
		</td>
	</tr>
	<tr>
		<td><b><font color="#696969"> 개봉일</font> </b><b><font color="red">${movie.OPENING_DAY}</font></b></td>
	</tr>		
</table>
<hr color="#f5f5f5">
</c:forEach>

